<script setup>
import { ref } from 'vue'
import {selectOperateLogService
    
} from '@/api/SysManager.js'

const total = ref(0)
const params = ref({
  pageNum:1,
  pageSize:5
})
const handleClick = () => {
  console.log('click')
}
const operateLogList = ref([])
const operateVo = ref({
      id:'',
      courseName:'',
      userName:'',
      operateDesc:'',
      createTime:'',
      createTimeStr:'',
})
const getOperateLogs = async() => {
    const res = await selectOperateLogService(params.value)
    operateLogList.value = res.data.data
    total.value = res.data.total
}
getOperateLogs()
</script>

<template>
  <div>
    <div class="cus-header">
        <el-card>
            <div class="search">
                <div>
                    课程：
                    <el-input v-model="input" style="width: 240px" placeholder="请输入课程名称" />
                </div>
                <div style="margin-left: 20px;">
                    课节：
                    <el-input v-model="input" style="width: 240px" placeholder="请输入课节" />
                </div>
                <div style="margin-left: 20px;">
                    姓名：
                    <el-input v-model="input" style="width: 240px" placeholder="请输入姓名" />
                </div>
                <div style="margin-left: 20px;">
                    <el-button style="width: 80px;" type="primary">搜索</el-button>
                </div>
            </div>
            
        </el-card>
    </div>
    <div class="cus-body">
        <el-card style="min-height: 650px;">
            <el-table :data="operateLogList" style="width: 100%">
                <el-table-column fixed prop="id" label="编号" width="150" />
                <el-table-column prop="courseName" label="课程名称" width="120" />
                <el-table-column prop="userName" label="用户名称" width="120" />
                <el-table-column prop="operateDesc" label="内容" width="120" />
                <el-table-column prop="createTimeStr" label="时间" width="1020" />
            </el-table>
        </el-card>
    </div>
  </div>
</template>


<style lang="scss" scoped>
    .flex-row{
        display: flex;
        flex-direction: row;
    }
    .cus-header{
        .search{
            display: flex;
            flex-direction: row;
        }
    }
    .cus-body{
        margin-top: 15px;
    }
</style>